package masterjava.admingui.shared.entity;

import masterjava.common.shared.entity.BaseEntity;

import javax.persistence.*;

/**
 * User: Grigory Kislin
 * Date: 23/06/11
 */
@Entity
@Table(name = "ATTACHMENT")
@Access(AccessType.PROPERTY)
public class Attachment extends BaseEntity {
    private byte[] data;

    @Lob
    @Column(  name = "DATA" )
    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

    @Override
    public void prepareToSerialize() {
    }
}
